package com.wangsd.web.coupon.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wangsd.web.coupon.entity.Coupon;
import com.wangsd.web.coupon.entity.MemberCoupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author generator
 * @since 2019-09-26
 */
public interface MemberCouponMapper extends BaseMapper<MemberCoupon> {
    IPage<MemberCoupon> selectListXml(Page<MemberCoupon> page, @Param("code") String code, @Param("coupon") MemberCoupon coupon);

    Map selectListStatisticsXml(@Param("code") String code, @Param("coupon") MemberCoupon coupon);

    IPage<MemberCoupon> selectBusinessListXml(Page<MemberCoupon> page, @Param("code") String code, @Param("coupon") MemberCoupon coupon);

    Map selectBusinessListStatisticsXml(@Param("code") String code, @Param("coupon") MemberCoupon coupon);
}
